<template>
  <!-- 注意：在vue2的组件中，每一个组件<template>下只有能一个根节点，插入第二个元素就会报错 -->
  <div>
    <el-container>
      <el-aside width="auto">
        <common-aside/>
      </el-aside> 
      <el-container>
        <el-header>
         <common-header/>
        </el-header>
        <common-tag/>
        <el-main>
          <!-- 路由出口 -->
          <!-- 路由匹配到的组件将渲染在这里 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
  
<script>
import CommonAside from '@/components/CommonAside.vue';
import CommonHeader from '@/components/CommonHeader.vue';
import CommonTag from '@/components/CommonTag.vue';

export default {
  data(){
    return{}
  },
  components:{
    CommonAside,
    CommonHeader,
    CommonTag
  }
};
</script>
  
<style scoped>
.el-header{
  padding: 0;
}
.el-menu{
  border-right: none;
}
</style>